package cn.lanca.gof16_20._18observer.case3;

/**
 * project name:<font size="1"><b>小芄健康数据运营平台</b></font><br>
 * file name:<font size="1"><b>DictTemplate</b></font><br>
 * description:<font size="1"><b>平台字典数据操作实现类</b></font><br>
 * company name:<font size="1"><b>小芄医药科技（成都）有限公司-研发中心</b></font><br>
 *
 * @author <a href="mail to: ">mei.hongliang<br>
 * @version 1.0.0<br>
 * @since 2022/3/2 16:38  <br>
 */
public class TongueDogTest {

    public static void main(String[] args) {
        System.out.println("有一个漂亮女孩");
        BeautyGirl beautyGirl = new BeautyGirl();
        //
        beautyGirl.addPersonListener(new TongueDog_1());
        System.out.println("她有两个追求者 TongueDog_1/TongueDog_2");
        beautyGirl.addPersonListener(new TongueDog_2());
        System.out.println();
        System.out.println("有一天她生病了,,,");
        GirlEvent sick = new GirlEvent("null", true, false);
        beautyGirl.sick(sick);
        System.out.println("有一天她饿了,,,");
        GirlEvent hunger = new GirlEvent("null", false, true);
        beautyGirl.hunger(hunger);

//        System.out.println();
        System.out.println("均未得到任何回应");

    }
}
